package com.per.mybootall.service;

import com.per.mybootall.pojo.Order;
import com.per.mybootall.pojo.Product;
import com.per.mybootall.pojo.User;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Map;
@Service
public interface AdminDoInter {
    Map<Object,Object> adminLoad(String userToken, String whoareRoot, String productKind);
/*订单页面加载*/
    Map<String,Object> orderLoadMessage(String roottoken,String whoareroot);
    Map<String,Object> loadUserMessage(String roottoken, String whoareroot);

    String delectProductMessgae(Integer productid);
    String delectUserMessage(Integer id);
    String delectOrderMessage(Integer id);


    String updateUserMessage(User record);
    String updateProductMessage(String subtitle, BigDecimal prick, Integer stock, Long id);
    String updateOrderMessage(Order order);
}
